<include file="public/header" />
<link rel="stylesheet" href="__ADMIN__/css/global.css?v=1.2">
</head>
<body style="background: #fff;">
<div class="admin-main">

	<blockquote class="layui-elem-quote">
		<form class="layui-form"  >
			<div class="layui-inline fr" >
				<button class="layui-btn layui-btn-normal" id="refresh_wrapper">
					<i class="layui-icon">&#xe666;</i>
				</button>
			</div>
			<div class="layui-inline fr  mr20" >
				<a onclick="iframe('{:url(\'Admin/roleaddedit\')}','添加新角色','550px','330px')"class="layui-btn layui-btn-danger">
					<i class="layui-icon">&#xe608;</i>&nbsp;&nbsp;添加新角色
				</a>
			</div>
		</form>
		<div class="clear"></div>
	</blockquote>
	
	<div class="layui-field-box">
	  <form class="layui-form">
		<table class="site-table table-hover">
			<thead>
				<tr>
					<th>角色名</th>
					<th>角色描述</th>
					<th>创建时间</th>
					<th width="250px">操作</th>
				</tr>
			</thead>
			<tbody>
			<foreach name="role" item="vo">
				<tr>
					<td>{$vo.name}</td>
					<td>{$vo.remark}</td>
					<td>{:date('Y年m月d日 H:i:s',$vo['create_time'])}</td>
					<td>
					  <if condition="$vo.id neq 1">
						  	<a href="{:url('Admin/roleJurisdiction',['id'=>$vo['id']])}"  class="layui-btn layui-btn-black layui-btn-xs" >权限选择</a>
							<php>$url= url('Admin/roleaddedit',['id'=>$vo['id']]);</php>
							<a  onclick="iframe('{$url}','编辑角色信息','550px','330px')"  class="layui-btn layui-btn-danger layui-btn-xs">编辑角色</a>
							<a  data-url="{:url('Admin/roledelete',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-xs J_list_delete" >删除角色</a>
					 	</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
	  </form>
	</div>
 	<if condition="$allpage gt 1">
		<div class="admin-table-page">
			<div id="mylaypage" ></div>
		</div>
	 </if> 
</div>
<script>
  myjumppage = "{:url('Admin/role',['page'=>'pageval','limits'=>'limitval'])}";
</script>
<include file="public/footer" />
</body>
</html>